// 1. 引入组件
import Index from '../views/Index.vue'
import {createRouter, createWebHashHistory} from 'vue-router'
// 2. 配置路由
const routes = [
	{
		path: '/index',
		name: 'index',
		component: Index
	}
]
// 3. 创建路由实例
 const router = createRouter(
	{
		history: createWebHashHistory(),
		routes: routes // routes
	}
)
export default router